home *** CD-ROM | disk | FTP | other *** search
- Path: unix.sri.com!usenet
- From: mklenk@updike.sri.com (Mark Klenk)
- Newsgroups: comp.lang.c
- Subject: Re: renaming file names from within C!
- Date: 16 Jan 1996 23:52:38 GMT
- Organization: Nuance Communications
- Message-ID: <4dhdo6$8t1@unix.sri.com>
- References: <4dh7sb$6de@hammerhead.dadd.ti.com>
- Reply-To: mklenk@updike.sri.com
- NNTP-Posting-Host: 204.75.161.40
-
-
- Sudheer wrote:
- >
- >How can i move/rename a file in the UNIX system from within a C program.
-
- Use the ANSI C rename function. It has the following prototype:
-
- int rename(char const * oldname, char const * newname);
-
- It returns 0 on success, non-zero otherwise.
-
- ---
-
- mklenk@coronacorp.com (Mark Klenk)
-
-
-
-